package com.appspot.didit.client.tag;

import java.util.ArrayList;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("tag")
public interface TagService extends RemoteService {
	public Tag save(Tag t);
	public void update(Tag t);
	public ArrayList<Tag> loadTags(Long user_id);
	public void share(Long tag_id, String username);
	public void share(String tagSignature, String username);
	public void shareWithEMail(Tag t, String email);
	public void withdrawShare(Long tag_id, String username);
	public void rejectShare(Long tag_id, String username);
	public void combineAAndBAsA(Tag a, Tag b);
	public void acceptInvitation(String tagSignature, String username);
	public void sendInvitation(Tag t, String email);
}
